package com.mall.orders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.model.domain.OmsOrder;
import com.mall.model.domain.OmsOrderItem;
import com.mall.model.domain.OmsOrderOperateHistory;
import com.mall.model.vo.OmsOrderVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
* @author LQJdeDELL
* @description 针对表【oms_order(订单表)】的数据库操作Mapper
* @createDate 2023-03-09 22:29:16
* @Entity generator.domain.OmsOrder
*/
public interface OmsOrderMapper {

    List<OmsOrder> selectAll(Integer page, Integer pageSize, Integer sourceType, Integer status, String createTime, String orderSn, Integer orderType, String receiverKeyword);

    Integer count(Integer sourceType, Integer status, String createTime, String orderSn, Integer orderType, String receiverKeyword);

    void delete(@Param("list") List<Integer> ids);

    void updateToClose(@Param("list") List<Integer> ids, String note,Integer status);

    void updateDelivery(Integer orderId, String deliveryCompany, String deliverySn);

    void updateMoneyInfo(Integer orderId, Integer discountAmount, Integer freightAmount, Integer status);

    void updateNote(Integer id, Integer status, String note);

    void updateReceiverInfo(Integer orderId, Integer status, String receiverCity, String receiverDetailAddress, String receiverName, String receiverPhone, String receiverPostCode, String receiverProvince, String receiverRegion);

    OmsOrder selectOrderById(Integer id);

    List<OmsOrderItem> selectItemById(Integer id);

    List<OmsOrderOperateHistory> selectHistoryById(Integer id);
}




